﻿using PublicCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T_Rbac_Demain
{
    [Table("Rule")]
    public class Rule : Audit
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public int Rid { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required]
        [StringLength(30)]
        public string? Rname { get; set; }
        /// <summary>
        /// 别名  
        /// </summary>
        [StringLength(20)]
        public string? Rothername { get; set; }
        /// <summary>
        /// 所属部门
        /// </summary>
        [StringLength(20)]
        public string? Rdname { get; set; }
        /// <summary>
        /// 所属部门id
        /// </summary>
        public int Rdid { get; set; }
    }
}
